package com.hequ.merchant.banner.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by 柯尊诚 on 2015/10/22.
 * kzc
 */
public class TimeUtil {


    public static String mm2time(String time) {

        DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        long now = Long.parseLong(time);
        Calendar calendar = Calendar.getInstance();
        calendar.setTimeInMillis(now);

        return formatter.format(calendar.getTime());
    }
}
